<include file="public@header"/>
<style>
    .edi{
        /*height: 500px;*/
    }
    th{
        width: 100px;
        text-align: center;
    }

</style>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('AdminRecruit/index')}">所有招聘</a></li>
        <li class="active"><a href="{:url('AdminRecruit/add')}">添加招聘</a></li>
    </ul>
    <form action="{:url('AdminRecruit/update')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <table class="table table-bordered">



            <tr>
                <th>招聘岗位<span class="form-required">*</span></th>
                <td>
                    <input id="post-id" type="hidden" name="post[id]" value="{$post.id}">
                    <input class="form-control" type="text" name="post[post]"
                           id="post" required value="{$post.post}" placeholder="请输入招聘岗位"/>
                </td>
            </tr>

            <tr>
                <th>所属部门<span class="form-required">*</span></th>
                <td>
                    <input class="form-control" type="text" name="post[department]"
                           id="department" required value="{$post.department}" placeholder="请输入所属部门"/>
                </td>
            </tr>

            <tr>
                <th>类型<span class="form-required">*</span></th>
                <td>
                    <input class="form-control" type="text" name="post[type]"
                           id="type" required value="{$post.type}" placeholder="请输入类型"/>
                </td>
            </tr>

            <tr>
                <th>地点<span class="form-required">*</span></th>
                <td>
                    <input class="form-control" type="text" name="post[place]"
                            id="place" required value="{$post.place}" placeholder="请输入标题"/>
                </td>
            </tr>




            <tr>
                <th>内容<span class="form-required">*</span></th>
                <td>
                    <script type="text/plain" id="content" name="post[content]" class="edi">{$post.content}</script>
                </td>
            </tr>

        </table>
        <hook name="portal_admin_article_edit_view_main"/>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script>
    $(function () {

        editorcontent = new baidu.editor.ui.Editor();
        editorcontent.render('content');
        try {
            editorcontent.sync();
        } catch (err) {
        }

    });
</script>
</body>
</html>
